package org.co.controller;

import org.co.model.Student;
import org.co.service.impl.SelectAllStudentImpl;
import org.co.service.impl.SelectStudentByAgeImpl;

import java.util.List;

public class SelectStudentByAgeController {
    static SelectStudentByAgeImpl selectStudentByAge;
    static {
        selectStudentByAge = new SelectStudentByAgeImpl();
    }

    public static void main(String[] args) {
        List<Student> studentListByAge = selectStudentByAge.selectStudentByAge(24);
        studentListByAge.forEach(System.out::println);
    }
}
